//
//  IngAnnouncell.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/21.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class IngAnnouncell: BaseTableViewCell {
    
    @IBOutlet weak var bgView: UIView!
    @IBOutlet weak var bottomView: UIView!
    
    @IBOutlet weak var bottomLabel: UILabel!
    @IBOutlet weak var middleLabel: UILabel!
    @IBOutlet weak var topLabel: UILabel!
    @IBOutlet weak var logoImageView: UIImageView!
    @IBOutlet weak var leftImageView: UIImageView!
    var model : DidAnnounModel?{
        
        
        didSet{
            
            if model == nil {
                return
            }
            
            topLabel.text = model?.goods_name
            
            middleLabel.text = "本期期号: \(model!.od_no)"
            
            
        }
    
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        contentView.backgroundColor = UIColor.viewBgGrey()
        topLabel.textColor = UIColor.black
        middleLabel.textColor = UIColor.dakGray()
        bottomLabel.textColor = UIColor.dakGray()
        
        bgView.addCornerAndBorder(borderColor: nil, borderWidth: 0, masksToBounds: true, cornerRadius: 5)

        
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
